﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.monthSupplayPlan
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int monthSupplyPlanId=(Convert.ToInt32(strid));
					ShowInfo(monthSupplyPlanId);
				}
			}
		}
		
	private void ShowInfo(int monthSupplyPlanId)
	{
		Maticsoft.BLL.monthSupplayPlan bll=new Maticsoft.BLL.monthSupplayPlan();
		Maticsoft.Model.monthSupplayPlan model=bll.GetModel(monthSupplyPlanId);
		this.lblmonthSupplyPlanId.Text=model.monthSupplyPlanId.ToString();
		this.lblsupplyDate.Text=model.supplyDate.ToString();
		this.lblsupplyPlanId.Text=model.supplyPlanId.ToString();
		this.lblthisMonthCount.Text=model.thisMonthCount.ToString();
		this.lblgoodsQualityStatus.Text=model.goodsQualityStatus;
		this.lblgoodsQualityStatusDate.Text=model.goodsQualityStatusDate.ToString();
		this.lblsendStatus.Text=model.sendStatus;
		this.lblsendStatusDate.Text=model.sendStatusDate.ToString();
		this.lbllastArrivalDate.Text=model.lastArrivalDate.ToString();
		this.lblfristCheckedCount.Text=model.fristCheckedCount.ToString();
		this.lbllastCheckedDate.Text=model.lastCheckedDate.ToString();
		this.lblinstoreCount.Text=model.instoreCount.ToString();
		this.lbllastInstoreDate.Text=model.lastInstoreDate.ToString();
		this.lblresult.Text=model.result;
		this.lblarrivalAddress.Text=model.arrivalAddress;
		this.lbllinkman.Text=model.linkman;
		this.lblcontactWay.Text=model.contactWay;
		this.lbluser_id.Text=model.user_id.ToString();
		this.lblstatus.Text=model.status;

	}


    }
}
